package eqsolver;

public class Solver1 implements ISolver {
	private float a,b;
	private float x[];

	public void solve() {
		
	}
	
	public Solver1(IEquation equation){
		//TODO implementare algoritmo risoluz 1
	}
	
	public void setA(int a) {
		this.a = a;
	}

	public void setB(int b) {
		this.b = b;
	}
	
	public float[] getSolution(){
		
		x = new float[1];
		
		x[0]= -b/a;
		
		return x;
	}
	
}
